import request from '@/utils/request'

// 查询所有
export function selectAllZhanqu() {
  return request({
    url: `/new/selectAllZhanqu`,
    method: 'get'
  })
}

// 添加
export function addNewZhanqu(data) {
  return request({
    url: `/new/addZhanqu`,
    method: 'post',
    data: data
  })
}

// 更新
export function updateNewZhanqu(zqid, data) {
  return request({
    url: `/new/updateZhanqu/${zqid}`,
    method: 'put',
    data: data
  })
}

// 删除
export function deleteNewZhanqu(zqid) {
  return request({
    url: `/new/deleteZhanqu/${zqid}`,
    method: 'delete'
  })
}

// 下载
export function downloadNewZhanqu() {
  return request({
    url: `/new/downloadZhanqu`,
    method: 'GET',
    responseType: 'blob'
  })
}